<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

class getStatus extends CWidget
{

	public $modified = "";

	public function run ()
	{
		$model = new getStatusForm();
		if (isset(Yii::app()->session['statusAttributes']))
			$model->attributes = Yii::app()->session['statusAttributes'];
		
		if (isset($_POST['getStatusForm']))
		{
			$model->attributes = $_POST['getStatusForm'];
		}
		
		$this->render( 'getstatus', array( 'modified' => $this->modified, 'model' => $model ) );
	}

}
